<?php

namespace app\controller;

use yzh52521\EasyHttp\Http;

class TestController
{
    public function index()
    {
        $headers = [
            'Accept' => 'application/json, text/plain, */*',
            'Accept-Language' => 'zh-CN,zh;q=0.9',
            'Connection' => 'keep-alive',
            'Cookie' => 'bmm-uuid=d38aea22-0fe3-033e-9279-9f7a07617ee6; _lxsdk_cuid=191023519dec8-09014a1518bf62-26001e51-1fa400-191023519dfc8; _lxsdk=191023519dec8-09014a1518bf62-26001e51-1fa400-191023519dfc8; sso_clientId=banma; hd_user_mis="bm_liangdandan01%40BMhuaianmeijiadianzishangwuyouxiangongsi"; banma_ssoid=eAGFjbtKA0EUQBmCGFOIBATLLSw0RZi9Mzt31srHDwgRBBuZx10LyW6xgk0KEzsR0RAEtfCBlaCWWgh-gIWIYGMrJLZ2VhoRa7sDh8MpspH9u49S8PW5ubMHMGBNWjdTARpHXqGIKNJSQRRrhAq3xhmZaHB69oWVhxbJ1hyl1AieXo-eOwD_ZvrnNc3mHx9u2rvQYtXSYK2ez2WeyqPd48u3-9P3i-3edbN70uxdnfdhrBBs3B5MTvwGbVb8ex6yqvAGtUIuXWgUGkXaWp1w741wXsR8OUQAEeoYEXR0xsbXyTa05KIvLXlupbJco4jJe0ESI55wWAqk40kchQJsRUjgaBIZorKEoEInwLXY8AqtzThHeb6QrVK6xQp5nn0DNJJuwQ**eAENytEVADEEBMCWCI9VzorTfwm5-R5Bp2qAdBm2x-Jcy4954T2hap4iA4XM9kF1GHv5h6o4DzGQEXw**hdBSJY9rNhi_59jStYoQsIBKiSei2IGNL9oqa5pgLXvWIg7reMjTTNYdaqxhoFOzzAgUeTD8_A_DMvdeq8PMlw**MjI4NDY5OTgsYm1fbGlhbmdkYW5kYW4wMSzmooHkuLnkuLksLDEsLDE3MjI1Nzk3NDYwNDc; ssoid=eAGFjbtKA0EUQBmCGFOIBATLLSw0RZi9Mzt31srHDwgRBBuZx10LyW6xgk0KEzsR0RAEtfCBlaCWWgh-gIWIYGMrJLZ2VhoRa7sDh8MpspH9u49S8PW5ubMHMGBNWjdTARpHXqGIKNJSQRRrhAq3xhmZaHB69oWVhxbJ1hyl1AieXo-eOwD_ZvrnNc3mHx9u2rvQYtXSYK2ez2WeyqPd48u3-9P3i-3edbN70uxdnfdhrBBs3B5MTvwGbVb8ex6yqvAGtUIuXWgUGkXaWp1w741wXsR8OUQAEeoYEXR0xsbXyTa05KIvLXlupbJco4jJe0ESI55wWAqk40kchQJsRUjgaBIZorKEoEInwLXY8AqtzThHeb6QrVK6xQp5nn0DNJJuwQ**eAENytEVADEEBMCWCI9VzorTfwm5-R5Bp2qAdBm2x-Jcy4954T2hap4iA4XM9kF1GHv5h6o4DzGQEXw**hdBSJY9rNhi_59jStYoQsIBKiSei2IGNL9oqa5pgLXvWIg7reMjTTNYdaqxhoFOzzAgUeTD8_A_DMvdeq8PMlw**MjI4NDY5OTgsYm1fbGlhbmdkYW5kYW4wMSzmooHkuLnkuLksLDEsLDE3MjI1Nzk3NDYwNDc; WEBDFPID=0v8758yxxu375820063y45uz04u482xv808975wvv6w97958yyx6x038-2037680546294-1722320546294UGIUAGYfd79fef3d01d5e9aadc18ccd4d0c95073928; JSESSIONID=; hd_user_id=48968401; hd_city_id=320800; _lxsdk_s=191023519df-d9f-07e-8c%7C%7C23',
            'Referer' => 'https://peisong.meituan.com/order/orderDetailBm?waybillId=1722320742327287514',
            'Sec-Fetch-Dest' => 'empty',
            'Sec-Fetch-Mode' => 'cors',
            'Sec-Fetch-Site' => 'same-origin',
            'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36',
            'mtgsig' => '{"a1":"1.1","a2":1722326465412,"a3":"0v8758yxxu375820063y45uz04u482xv808975wvv6w97958yyx6x038","a5":"yBVt9D5dPUWGmyNwCUNIOHAq/gRlIwb6","a6":"h1.5t6HJdtgtBuPywQfWefbpgnEd7n76S4Srsc1gd5qo8/SfQWGdZ1kHSdmoqTo+ZZt3NkRNOF1by8t+rrhdJx5GVdx6XmhJY7yJ15Ief0EwWbfPqfvuTdSvQoAXXHU3mqNAHZalPL+yg/7Jaju3ND2WqM3+CSmcS7+iCzhDXq1rhygVBe59wyiUAAkNhi58lLBQXjhjAHHB5ygGbgTigI6O0nl2H6V3g9QqQknMZMqI+vXdGeZ/Rg1UqakpvuvMfzQxob0KEFrf7RJo3Yjkax5BI+7CnSyFCzMebL54iiFWq6s5nSZwq15J0nmftS7MyxJnPdpdinLrxf3sbeQAFboJ4pFPKdhSl+048kYkUdsgH+4=","x0":4,"d1":"311513bdbc283a26aea7030f8d3d299c"}',
            'sec-ch-ua' => '"Not)A;Brand";v="99", "Google Chrome";v="127", "Chromium";v="127"',
            'sec-ch-ua-mobile' => '?0',
            'sec-ch-ua-platform' => '"Windows"'
        ];
        $query = [
            'waybillId' => '1722320742327287514',
            'yodaReady' => 'h5',
            'csecplatform' => '4',
            'csecversion' => '2.4.0'
        ];
        $res = Http::withHeaders($headers)->get('https://peisong.meituan.com/api/dispatch/partner/waybill/queryFlowDetail', $query);
        d($res->array());
    }
}
